﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page1.aspx.cs" Inherits="JSONDemoWebUI.Page1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function fun() {
            PageMethods.GetPageMethod(onSucceed, onError);
            return false;
        }
        function onSucceed(result) {
            alert(result);
        }
        function onError(result) {
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="True">
    </asp:ScriptManager>
    <div>
        <asp:TextBox ID="TextBox1" runat="server" onblur="return fun()"></asp:TextBox>
    
        <asp:DropDownList ID="DropDownList1" runat="server" onclick="return fun()">
            <asp:ListItem Text="West Bengal" Value="Kolkata" Selected="True" />
            <asp:ListItem Text="Orissa" Value="Bhubaneswar" />
        </asp:DropDownList>
    </div>
    </form>
</body>
</html>
